@import './var.scss';
@import './vant-custom.scss';

* {
  box-sizing: border-box !important;
  // 禁止复制文本
  -moz-user-select: -moz-none;
  -moz-user-select: none;
  -o-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea {
  -webkit-user-select: auto;
}

img {
  // 禁止下载图片
  pointer-events: none;
}


body {
  // 禁止缩放
  touch-action: none;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow: hidden;
  /* 用于 ios5+ */
  -webkit-overflow-scrolling: touch;
}

img.van-image__img {
  display: inline-block;
  vertical-align: bottom !important;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 外边距、内边距全局样式 */
@for $i from 0 through 100 {
  .mt-#{$i} {
    margin-top: #{$i}px !important;
  }

  .mr-#{$i} {
    margin-right: #{$i}px !important;
  }

  .mb-#{$i} {
    margin-bottom: #{$i}px !important;
  }

  .ml-#{$i} {
    margin-left: #{$i}px !important;
  }

  .pt-#{$i} {
    padding-top: #{$i}px !important;
  }

  .pr-#{$i} {
    padding-right: #{$i}px !important;
  }

  .pb-#{$i} {
    padding-bottom: #{$i}px !important;
  }

  .pl-#{$i} {
    padding-left: #{$i}px !important;
  }
}

.gradient-pink {
  background: linear-gradient(180deg, #AC007C 0%, #E6008A 5%, #410045 100%);
}

.gradient-blue {
  background: linear-gradient(180deg, #4185F9 0%, #042F79 100%);
}

.btn-click {
  cursor: pointer;
}

.btn-click:active {
  transform: scale(0.9);
  -ms-transform: rotate(0.9);
  /* IE 9 */
  -moz-transform: rotate(0.9);
  /* Firefox */
  -webkit-transform: rotate(0.9);
  /* Safari 和 Chrome */
  -o-transform: rotate(0.9);
  /* Opera */
}

.btn-blue {
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-size: 18px;
  color: $color_white;
  background: linear-gradient(180deg, #4185F9 0%, #042F79 100%);
}

.btn-six-edge {
  -webkit-clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
}